Used to play sounds.
Notes
Sounds that have been added to the Project Editor can be accessed via their object name. Sounds can also be accessed by calling the OpenAsSound method of a FolderItem. There are no properties or events for sound objects.
Sound can play any number of sounds simultaneously, limited only by system resources.
Examples
This example plays a sound called "Sledgehammer" which has been dragged into the Project Editor.
sledgehammer.play
This example loads a sound file called "Doh!" from the current directory (folder) into a sound object and plays it.
The following example plays the sound "Giggle", which has been added to the Project Editor, in an endless loop.
Giggle.playlooping
This example stops "Giggle."
Giggle.stop
See Also
NotePlayer control.